﻿using EnvDTE;
namespace ClassMetadataBrowser.Domain.Metadata
{
	public class DelegateMetadata : MetadataObjectBase
	{
		protected override void CodeElementSet(CodeElement element)
		{
			CodeDelegate del = (CodeDelegate)element;
			SetAccess(del.Access);
			AttributesCount = del.Attributes == null ? 0 : del.Attributes.Count;
		}

		public override void Accept(IMetadataVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
